package com.huishu.user.fegin;

import com.huishu.commons.pojo.Result;
import com.huishu.commons.pojo.vo.UserOrderInfoVO;
import com.huishu.user.fegin.fallback.OrderFeignClientFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @ClassName：UserFeignClient
 * @Author: ljj
 * @Date: 2023/4/10 16:27
 * @Description:
 */
@FeignClient(name = "order-server", path = "/order", fallbackFactory = OrderFeignClientFallBack.class)
public interface OrderFeignClient {

    @PostMapping("/order/getOrderInfoByUserIds")
    Result<List<UserOrderInfoVO> >  getOrderInfoByUserIds(@RequestBody List<Long> ids);
}
